package com.factory._16state;

/**
 * @author Qinye
 * @date 2023/8/13 17:59
 */
public class End implements FlowTask {
    @Override
    public void next(WorkFlow workFlow) {
        System.out.println("环节已结束");

    }

    @Override
    public void back(WorkFlow workFlow) {
        System.out.println("回到中间环节");
        workFlow.changeFlowTask(new Middle());
    }
}
